home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 028a / zray125.zip / ZR.TXT < prev   
Text File  |  1991-04-30  |  25KB  |  542 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                          Z-Ray (ZIP File X-Ray) 1.25
  7.  
  8.  
  9.            Copyright 1990, 1991 by Gordon Haff and Bit Masons Consulting.  
  10.                              All rights reserved.
  11.  
  12.  
  13.  
  14.           Command:  ZR
  15.  
  16.           Purpose:  Provides a scrollable environment for selecting
  17.                     files contained within a ZIP file and viewing or
  18.                     extracting their contents
  19.  
  20.           Syntax:   ZR [d:][\path\]filename.ZIP [/n]
  21.  
  22.           Commands: <Enter> views files
  23.                     <Space> or <e> extracts files
  24.  
  25.           Prereqs:  100% IBM Compatible PC running DOS 2.1 or higher
  26.  
  27.           Archive Name:   ZRAY124.ZIP
  28.  
  29.  
  30.           Associated Programs:
  31.  
  32.                     In its default configuration, ZV REQUIRES Vern Buerg's
  33.                     LIST file viewing program and Phil Katz's PKUNZIP
  34.                     program.  LIST and PKUNZIP are Shareware and require
  35.                     separate registration with their authors.
  36.  
  37.                     While ZV can be operated from the DOS command line
  38.                     using the format described above, it is most
  39.                     conveniently called as a user-defined shell command
  40.                     (or SmartViewer in DF 4.0 and later) from within the
  41.                     author's Directory Freedom (DF) program.
  42.  
  43.           Other:    Your COMSPEC variable must be set.  See Section 2.1.
  44.  
  45.                     This program was formerly called ZipView or ZV.  It
  46.                     has been renamed to eliminate confusion with other
  47.                     similarly named products.
  48.  
  49.  
  50.                                  ┌─────────┐
  51.                            ┌─────┴───┐     │              (tm)
  52.                          ──│         │o    │──────────────────
  53.                            │   ┌─────┴╨──┐ │  Association of
  54.                            │   │         │─┘  Shareware
  55.                            └───│    o    │    Professionals
  56.                          ──────│    ║    │────────────────────
  57.                                └────╨────┘    MEMBER
  58.  
  59.  
  60.           ZR 1.25                                                     2
  61.  
  62.  
  63.                                      DISCLAIMER
  64.  
  65.           The author hereby disclaims all warranties relating to this
  66.           product, whether express or implied, including without limitation
  67.           any implied warranties of merchantability or fitness for a
  68.           particular purpose. The author cannot and will not be liable for
  69.           any special, incidental, consequential, indirect or similar
  70.           damages due to loss of data or any other reason, even if the
  71.           author or an authorized agent has been advised of the possibility
  72.           of such damages.  In no event shall the liability for any damages
  73.           ever exceed the price paid for the license to use the software,
  74.           regardless of the form and/or extent of the claim.  The user of
  75.           this program bears all risk as to the quality and performance of
  76.           the software.
  77.  
  78.                                        LICENSE
  79.  
  80.           ZR is distributed as free, copyrighted software.  What this means
  81.           is that you can use this program for as long as you like without
  82.           cost or obligation.  What you cannot do is to sell this software
  83.           or make a profit off of it (except as described below) without
  84.           the express written permission of the author.
  85.  
  86.           ZR is the sole property of Gordon Haff.  The program may be
  87.           freely copied and transferred to individual parties.  It may be
  88.           posted on Bulletin Board systems (BBS) for electronic access as
  89.           long as NO FEE is charged for its distribution except for private
  90.           BBS operations that charge a regular user subscription fee.
  91.           Computer information services such as Compuserve (CIS), Genie,
  92.           and Byte Information Exchange (BIX) are authorized to post this
  93.           product for subscriber access.  ZR may be distributed on diskette
  94.           only by 1) disk distributors/vendors who are associate members of
  95.           the Association of Shareware Professionals (ASP) or 2) users
  96.           groups which do not charge more than a nominal fee ($5) to cover
  97.           the costs of distribution.  Any changes to these policies must be
  98.           made in writing by the author.
  99.  
  100.           This program is produced by a member of the Association of
  101.           Shareware Professionals (ASP).  ASP wants to make sure that the
  102.           shareware principle works for you. If you are unable to resolve a
  103.           shareware-related problem with an ASP member by contacting the
  104.           member directly, ASP may be able to help. The ASP Ombudsman can
  105.           help you resolve a dispute or problem with an ASP member, but
  106.           does not provide technical support for members' products. Please
  107.           write to the ASP Ombudsman at P.O. Box 5786, Bellevue, WA 98006
  108.           or send a Compuserve message via easyplex to ASP Ombudsman
  109.           70007,3536.
  110.  
  111.           ZR 1.25                                                     3
  112.  
  113.                                   TECHNICAL SUPPORT
  114.  
  115.  
  116.           Since this program is a freebie, unlike the shareware programs
  117.           for which I request a registration fee, I'm not going to make any
  118.           guarantees here with respect to bug fixes or other technical
  119.           support.  Having said that, I do like my programs to be as
  120.           bug-free as possible, so feel free to report any problems which
  121.           you run across.
  122.  
  123.  
  124.                Contact via:
  125.  
  126.                     Channel 1 BBS            (617) 354-8873
  127.                     Compuserve User ID#      72561,2637  (See Note 1)
  128.                     InterNet/ARPANET         72561.2637@compuserve.com
  129.  
  130.                     U.S. Mail                3205 Windsor Ridge Dr.
  131.                                              Westboro MA 01581
  132.                     Telephone                (508) 898-3321 (after 6pm
  133.                                                           Eastern time)
  134.  
  135.           The above are roughly in order of preference (i.e. how quickly
  136.           I'm likely to see your message and be able to respond).  I check
  137.           Channel One almost daily and the other electronic services at
  138.           least weekly in most cases.  In addition, I monitor the Interlink
  139.           and the PCRelay Shareware relays through Channel One.
  140.  
  141.           Note 1:
  142.           When contacting me via Compuserve, please use the Easyplex mail
  143.           system since I do not regularly monitor any of the IBM SIG
  144.           message bases.
  145.  
  146.           ZR 1.25                                                     4
  147.  
  148.  
  149.           1.0     Why and Whence ZR?
  150.           --------------------------
  151.  
  152.           The main reason that I wrote Z-Ray (as in Zip X-Ray) is the
  153.           following:  I have a shareware file management program called
  154.           Directory Freedom which is small and fast in spite of having
  155.           more wonderful and exciting features than I could possibly
  156.           describe here (Plug #1).  Yet, there was still one thing which I
  157.           continually ended up having to exit DF to do -- namely, to view
  158.           the contents of files contained within ZIP files.
  159.  
  160.           This annoyed me.
  161.  
  162.           I looked high and low for a program which I could call with DF's
  163.           nifty user-defined shell function (Plug #2), but nothing did
  164.           exactly what I needed.  So out came the assembler and, a week or
  165.           so later, out popped ZR.
  166.  
  167.           So.... armed with ZR, DF can now perform most of the major
  168.           archiving and de-archiving functions that people who deal
  169.           primarily with Phil Katz's ZIP format need.  (DF 4.0 has the
  170.           capability to archive files.)  For the fancy stuff (such as
  171.           selective archive updates), you'll still need a program like
  172.           ARCMASTER or SHEZ, but DF will be able to handle all the
  173.           everyday stuff.
  174.  
  175.  
  176.           ZR 1.25                                                     5
  177.  
  178.  
  179.           2.0     How does it Work?
  180.           -------------------------
  181.  
  182.           I'm glad you asked that question.  It works incredibly well.
  183.           Oh.. HOW does it work.  Well, there's nothing to it.
  184.  
  185.           The command line syntax is just:
  186.  
  187.                 ZR [d:][\path\]filename.ZIP [/n]
  188.  
  189.           So, any of the following are valid:
  190.  
  191.                ZR TEST.ZIP
  192.                ZR C:\FOO\TEST.ZIP
  193.                ZR E:\FOOBAR.ZIP /n
  194.  
  195.           You do need to type the extension since ZR will look into any
  196.           file with a ZIP format (including self-extracting files).
  197.  
  198.           /n (or -n) will sort the list in ascending alphabetical order.
  199.  
  200.           Assuming the specified file exists and is valid, you'll get a
  201.           window on the screen which looks something like the following.
  202.           The top line in the directory will be highlighted.
  203.  
  204.  
  205.    Z-Ray 1.25 Copyright 1990,91 by Gordon Haff and Bit Masons Consulting
  206. ┌──────────────────────────────────────────────────────────────────────────────┐
  207. │                                                                              │
  208. │  Filename       Before  Method  CR   After    Date    Time    CRC    Attr    │
  209. │  ------------ -------- -------- --- ------- -------- ------ -------- ----    │
  210. │  ASCAN.C         11591 Imploded 72%    3278  3-15-90  8:29p C48F03BC ---a    │
  211. │  ASIZE.C         17195 Imploded 76%    4134  3-15-90 12:31a A68B0C17 ---a    │
  212. │  BBSWEEP.C        6465 Imploded 69%    2031  1-22-90  1:06a 68E0379C ---a    │
  213. │  CONVERT.C       37526 Imploded 77%    8446  3-14-90 10:21p 2B42D1B8 ---a    │
  214. │  HEADER.C        11732 Imploded 72%    3342  3-03-90 10:03p E67A9698 ---a    │
  215. │  IBMDOS.C         2765 Imploded 71%     812  2-17-90  5:39p 4575BF5C ---a    │
  216. │  MACROS.C          301   Shrunk 31%     207 11-27-89  7:49p 9D902C85 ---a    │
  217. │  MAKEFILE         1602 Imploded 74%     412  3-06-90  4:51p 9C92811F ---a    │
  218. │  REDATE.C        17883 Imploded 79%    3710  1-22-90  1:07a 86A021A8 ---a    │
  219. │  SELF.C           1654 Imploded 66%     567  1-21-90 10:21p 65F69EE4 ---a    │
  220. │  TEST.C          10242 Imploded 69%    3142  3-15-90  8:29p B53434B5 ---a    │
  221. │  UNARC.C         15631 Imploded 74%    4136  3-06-90  7:35p 50C371B8 ---a    │
  222. │  UNIVERSE.C       7370 Imploded 69%    2256  3-14-90  9:21p 91B1CE5F ---a    │
  223. │  VERSION.C        1551 Imploded 48%     804  2-16-90 11:27p B7B98077 ---a    │
  224. │  VIEW.C          23958 Imploded 75%    6006  3-06-90  9:38p 5E983326 ---a    │
  225. │                                                                              │
  226. │                                                                              │
  227. │                                                                              │
  228. └──────────────────────────────────────────────────────────────────────────────┘
  229.     15 Files      167466          74%   43283      PKZIP Version: 1.1
  230.  
  231.  
  232.           ZR 1.25                                                     6
  233.  
  234.  
  235.           You can move the highlight bar arround with the <Up Arrow>, <Down
  236.           Arrow>, <PgUp>, <PgDn>, <Home>, and <End Keys>,  These do pretty
  237.           much what you'd expect them to do.
  238.  
  239.           You can quit by hitting the <Esc> key.
  240.  
  241.           And now we come to the useful part -- you can view the contents
  242.           of a file by pressing the <Enter> key.
  243.  
  244.           What the <Enter> key does is pipe the contents of the highlighted
  245.           file to Vernon Buerg's LIST program.  PKUNZIP and LIST MUST BE
  246.           PRESENT IN YOUR PATH OR THIS WON'T WORK!!!  Later on, I explain
  247.           how the default command line can be changed in case you've
  248.           renamed LIST or know some other way to do the same thing.  The
  249.           default exec line is:
  250.  
  251.                PKUNZIP -c ~ ` | list /s
  252.  
  253.                where:
  254.  
  255.                     ~ is the name of the archive being viewed
  256.                     ` is the name of the selected file
  257.  
  258.                     These names are filled in dynamically by ZR.
  259.  
  260.  
  261.           But Wait!  There's more! As of Revision 1.20, you can also
  262.           EXTRACT the highlighted file.  Pressing <space> or e will
  263.           extract the highlighted file with the following default command
  264.           line:
  265.  
  266.                PKUNZIP ~ `
  267.  
  268.           As with the viewer, this function requires that PKUNZIP be
  269.           present in your path.  The extraction will take place to the 
  270.           current DOS directory.
  271.  
  272.           About the Totals line:
  273.  
  274.           The totals line on the bottom gives you some summary information
  275.           about the archive -- total files, uncompressed and compressed
  276.           bytes, compression percentage, and PKZIP version number.
  277.  
  278.           The PKZIP version number is the oldest version of PKZIP which
  279.           was used in creating the archive.  USUALLY (as in almost all of
  280.           the time) all files in an archive will have been archived using
  281.           the same version, but this isn't necessarily the case -- files
  282.           can be added to an existing archive and the versions don't
  283.           necessarily have to match.
  284.  
  285.  
  286.           ZR 1.25                                                     7
  287.  
  288.  
  289.           2,1  COMSPEC Variable.
  290.           ----------------------
  291.  
  292.           In Order for ZR to work, your COMSPEC environment variable must
  293.           be set.  This variable tells ZR the name and the location of the
  294.           command interpreter to use when it shells to PKUNZIP.  Without a
  295.           COMSPEC variable, ZR will display a file listing, but you will be
  296.           unable to view the contents of files,
  297.  
  298.           To set the COMSPEC variable, include a line such as:
  299.  
  300.                SET COMSPEC=C:\COMMAND.COM
  301.  
  302.           in your AUTOEXEC.BAT file.  The above example is typical for a
  303.           hard disk system but other COMSPEC lines such as:
  304.  
  305.                SET COMSPEC=C:\4DOS.COM       and
  306.                SET COMSPEC=\COMMAND.COM
  307.  
  308.           are also possible.  The former uses J.P. Software's excellent
  309.           4DOS as the shell and the latter uses COMMAND.COM on the current
  310.           logical disk (This would be common for a floppy-only system).
  311.  
  312.           You can view your environment settings at any time
  313.           by typing SET at the DOS prompt.
  314.  
  315.           ZR 1.25                                                     8
  316.  
  317.  
  318.           3.0     Customizing ZR.
  319.           -----------------------
  320.  
  321.           I haven't gone and written a fancy user-friendly configuration
  322.           program for ZR, but you can do some limited modification if you
  323.           have a hex editor of some sort such as Norton's DiskEdit or NU.
  324.           Debug will also do in a pinch for the more adventurous.
  325.  
  326.           MAKE ALL MODIFICATIONS ON A COPY!  ALSO -- make sure that the
  327.           rev of the program matches this documentation since the offsets
  328.           could change between revisions!
  329.  
  330.                Colors:
  331.                -------
  332.  
  333.                     Variable          Offset          Default
  334.                     --------          ------          -------
  335.                     C_NORMAL            0Dh            02h
  336.                     C_INVERSE           0Eh            74h
  337.                     C_INTENSE           0Fh            03h
  338.                     C_BORDER            10h            4Eh
  339.  
  340.           C_BORDER is the attribute for the window border, C_INTENSE for
  341.           the heading in the window, C_INVERSE for the bar.  The color
  342.           values are in standard DOS combined foreground/background format.
  343.           See the Appendix for details on the values you can enter.
  344.  
  345.                Command Lines:
  346.                -------------
  347.  
  348.           The default command line for the viewer is:
  349.  
  350.                PKUNZIP -c ~ ` | list /s
  351.  
  352.           and resides from offset 14h through 31h, padded with spaces
  353.           (20h).  (These offsets, like those for the colors, are relative
  354.           to the beginning of the file at 0000h.)  If you modify this
  355.           command line, be careful not to overflow the space allotted to it
  356.           (there's a NULL (00) on the end) or the results will likely be
  357.           very unpleasant.
  358.  
  359.           The default command line for the Archive extract is:
  360.  
  361.                PKUNZIP ~ `
  362.  
  363.           and resides from offsets 36h through 53h.
  364.  
  365.           ZR 1.25                                                     9
  366.  
  367.  
  368.           4.0     Configuring DF to use ZR:
  369.           --------------------------------
  370.  
  371.           This is also very easy.  Just configure one of the User-defined
  372.           command lines (using DFCONFIG) to read:
  373.  
  374.                ZR ~
  375.  
  376.           When you highlight a file with DF and press the defined function
  377.           key, you will pop directly into the file listing window of ZR
  378.           from which you can select files to view.  No file names to type!
  379.           Isn't that easy?  (It'll be even easier with the SmartViewers in
  380.           DF 4.0.  You'll just setup ZR ~ to act on a ZIP extension.  Then
  381.           just press <Enter> to view the contents of a .ZIP file.)
  382.  
  383.           5.0     Technical and Acknowledgments.
  384.           -----------------------------------
  385.  
  386.           ZR was written using Borland's Turbo Assembler 2.0 and Turbo
  387.           Debugger 2.0, American Cybernetic's Multi-Edit 4.0, and Base Two
  388.           Development's Spontaneous Assembly assembler library.
  389.  
  390.           DF was developed on a homebrew 386 (named Dejah Thoris) based on
  391.           an AMI 20MHz full-size motherboard with a Micropolis 160MB ESDI
  392.           disk and Ultrastore 12(F) ESDI controller.  It is a dual monitor
  393.           system with an Orchid Prodesigner 512KB VGA board and an IBM MDA
  394.           board.  The system runs DOS 3.3, QEMM, and Windows 3.0.  While
  395.           it is not possible to test with all possible configurations,
  396.           test systems have included a DG/One 2T laptop, a Northgate 486,
  397.           a DG Dasher/286 with EGA, and an Intel 386/25 with VGA.  Testing
  398.           included both DOS 3.3 and DOS 4.01.
  399.  
  400.           Last, but certainly not least, thanks to my Directory Freedom
  401.           beta crew who have also helped out in debugging Z-Ray as well.
  402.  
  403.  
  404.           ZR 1.25                                                     10
  405.  
  406.  
  407.           6.0     Other Programs from Gordon Haff and Bit Masons Consulting:
  408.           -----------------------------------------------------------------
  409.  
  410.           Directory Freedom (DF):
  411.  
  412.               Offers users a fast, compact alternative to DOS Shells which
  413.             provides 1) selective file and directory operations; 2) a
  414.             scrollable environment for examining files and directories; 3)
  415.             user-defined keys which can operate upon highlighted files
  416.             (e.g. by defining an editor).  All this in a program which
  417.             takes less than 20KB since it is written in assembler! Easily
  418.             customized through an external configuration program. A "look-
  419.             and-feel" similar to PC Mag's DR, but does much more.  Now with
  420.             SmartViewers and many more exciting new features.
  421.                          Shareware: $20 Registration
  422.                          Latest version: 4.00 (DF400.ZIP)
  423.  
  424.  
  425.           the last word:
  426.  
  427.             'the last word' is a quotations trivia game in which 1 to 4
  428.             players compete against each other and their own high scores in
  429.             identifying the source of quotations and completing partial
  430.             quotes.  Most answers are entered free-form and are matched
  431.             against a set of acceptable responses with a sophisticated
  432.             pattern-recognition algorithm.  'the last word' runs in text
  433.             mode -- including on mono displays -- and offers a high level
  434.             of user configurability.
  435.                          Shareware: $15 Registration
  436.                          Latest version: 1.00  (LWORD100.ZIP)
  437.  
  438.           ND:
  439.  
  440.             Renames a file to the current date.  In other words, if the
  441.             current date were 10-06-90, the file 'FILENAME.QWK' would be
  442.             renamed to 901006.QWK.  The letters A through Z will be
  443.             appended as required to largely eliminate duplications.
  444.             This is a handy program for archiving message packets from
  445.             bulletin boards, for example.
  446.                            Free, copyrighted software (with 'C' source)
  447.                            Latest version: 1.0  (ND.ZIP or NEWDATE.ZIP)
  448.  
  449.  
  450.           These programs and others (Multi-Edit macros for use with Qmail
  451.           Deluxe, for example) are available on many fine bulletin boards.
  452.           The latest releases are always available on Channel One.   If you
  453.           just have to get a copy of one or more of these programs and
  454.           can't find one, however, I can send them out for a nominal media
  455.           and postage charge.
  456.  
  457.           ZR 1.25                                                     11
  458.  
  459.  
  460.           7.0     History:
  461.           ---------------
  462.  
  463.           Rev. 1.25      Changed display routines so directory no longer
  464.                            overlaid over previously viewed file
  465.                          Added bottom totals/version display
  466.  
  467.           Rev. 1.24      Additional memory management modifications
  468.  
  469.           Rev. 1.23      Rewrote memory management so that larger (in
  470.                            terms of number of ZIPped files) archives can be
  471.                            handled (archives containing > 256 files at
  472.                            least are OK)
  473.                          /n command-line to optionally sort list is
  474.                            ascending filename order
  475.                          Name changed from ZV (ZipView) to ZR (Z-Ray)
  476.  
  477.           Rev. 1.22      Corrected error message for when not enough
  478.                          memory to store interpreted file names
  479.  
  480.           Rev. 1.21      Fixed another big with <End> and <PgDn> keys when
  481.                          directory less than a screenful
  482.  
  483.           Rev. 1.20      Fixed bug with <End> key when cursor at bottom of
  484.                               directory
  485.                          Added <PgUp> and <PgDn> keys
  486.                          Added Extract Archive function
  487.  
  488.           Rev. 1.11      Fixed problem when SHARE was installed (Thanks to
  489.                          Dr. Herbert Markley for finding this -- the .ZIP
  490.                          file wasn't closed when the EXEC occurred and
  491.                          PKUNZIP, being the well written program that it
  492.                          is, was rightly refusing to have anything to do
  493.                          with the file as a consequence.)
  494.  
  495.           Rev. 1.10      Fixed display problem on monochrome systems
  496.                          Fixed problems with ZIP files < 10Kbytes
  497.  
  498.           Rev. 1.0       Initial Release
  499.  
  500.  
  501.           8.0     Known Limitations:
  502.           -----------------------
  503.  
  504.           (i.e. This is a free program and I got tired of beating out my
  505.           brains over it for the time being.)
  506.  
  507.               o  Truncates the display of files archived with their paths
  508.                  and will not pipe them to the viewer properly if the
  509.                  entire path and filename is greater than 13 characters.
  510.  
  511.               o  For various reasons, the central directory is only
  512.                  looked for in the last 10KB of the file.  *Conceivably*
  513.                  this could cause problems if there were very large ZIP
  514.                  comments.
  515.  
  516.  
  517.           ZR 1.25                                                     12
  518.  
  519.                               APPENDIX A
  520.  
  521.                                 COLORS
  522.  
  523.  
  524.           The color number stored for use in ZR are combined
  525.           foreground/background attributes of the type used by DOS.  This
  526.           combined attribute value is simply the foreground and background
  527.           numbers, as given below, bit-wise OR'd together.  That's a fancy
  528.           way of saying added together for our purposes here.  (Remember
  529.           though that these are hexadecimal numbers.)  For example, yellow
  530.           on a blue background is given by 1Eh (0Eh + 10h).
  531.  
  532.  
  533.           Foreground (normal)  Foreground (intense)         Background
  534.           --------------------------------------------------------------
  535.            0  black              8   dark gray               0   black
  536.            1  blue               9   light blue             10h  blue
  537.            2  green             0Ah  light green            20h  green
  538.            3  cyan              0Bh  light cyan             30h  cyan
  539.            4  red               0Ch  light red              40h  red
  540.            5  magenta           0Dh  light mag.             50h  magenta
  541.            6  brown             0Eh  yellow                 60h  brown
  542.            7  gray              0Fh  intense white          70h  gray